package db

import (
	_ "github.com/go-sql-driver/mysql"
	"github.com/jmoiron/sqlx"
)

var Db *sqlx.DB

func init() {
	var err error
	Db, err = sqlx.Connect("mysql", "devecs:ecsdevecs@@tcp(47.98.200.181:3306)/timed_task?charset=utf8")
	if err != nil {
		panic(err)
	}
	//Db.SetMaxIdleConns(0)
}
